package com.alstudio.net.protocol.xmpp.parser.message;

import java.io.ByteArrayInputStream;

import com.alstudio.net.callback.XmppEventListener;
import com.alstudio.net.protocol.xmpp.XmlReader;
import com.alstudio.net.protocol.xmpp.packact.Message;
import com.alstudio.net.protocol.xmpp.parser.BaseParser;
import com.alstudio.utils.Mylog;

public class MessageParser extends BaseParser{
	
	private Message msg;
	
	private final String TAG = "MessageParser";
	
	public MessageParser(Message msg,String stream,XmppEventListener listener){
		// TODO Auto-generated constructor stub
		this.stream = stream;
		try {
			mReader = new XmlReader(new ByteArrayInputStream(this.stream.getBytes()));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		mListener = listener;
		this.msg = msg;
	}
	
	public void startParseMessage() {
		Mylog.d(TAG,"start parsing message...");
		Mylog.d(TAG,"message parse done!");
	}
	
	
}
